/*
 * @Author: Leo.wang wanglizhigs@163.com
 * @Date: 2023-12-25 22:03:54
 * @LastEditors: Leo.wang wanglizhigs@163.com
 * @LastEditTime: 2023-12-27 13:06:19
 * @FilePath: /ruoyi-ui/src/api/common.js
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
import axios from "axios";

const request = axios.create({
  timeout: 10000,
  headers: {
    'Content-Type': 'application/json;charset=UTF-8;',
  },
});



export function getPcas() {
  return request({
    url: "/divisions/pcas-code.json",
    method: "get",
  }).then(({data}) => data);
}

export function getNations() {
  return request({
    url: "/nations.json",
    method: "get",
  }).then(({data}) => data);
}
